﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OrderingPlatform.MvcPager.Mvc;

namespace OrderingPlatform.Model
{
   public class CallBackPager<T>
    {
       public PagedList<T> Pager { get; set; }
       public int pageNumber { get { return Pager.CurrentPageIndex; } }
       public int pageSize { get { return Pager.PageSize; } }
       public List<T> rows { get { return Pager.ToList(); } }
       public int TotalPageCount { get { return Pager.TotalPageCount; } }
       public int total { get { return Pager.TotalItemCount; } }
    }
}
